﻿@using System.Configuration
@using ECG.Utility
@model List<ECG.Common.ProviderListCateHomeDto>
@if (Model.Any())
{
    var hostContainImages = ConfigurationManager.AppSettings["HostContainImages"];
    <div class="cate-rate">
        <div class="toppromotion-header">
            <i></i>
            <a href="@Url.Action("ViewProviderHomeByCate", "ProviderHome", new { Provider = ViewBag.categoryId, categoryName = StringUtil.RemoveSpecialCharactersVn(ViewBag.CateName) })" class="cate-promo-all">xem tất cả</a>
            <div class="topPro-padding">
                <span class="topPromo-text"><b>theo thương hiệu</b></span><br />
                <span class="topPromo-text-2">
                    <b>Provider / </b>các thương hiệu nổi tiếng và uy tín hàng đầu
                </span>
            </div>
        </div>
        <div class="toppromotion-body">
            <ul class="providerUlList ul clearfix">
                @foreach (var item in Model)
                {
                    <li>
                        <a href="@Url.Action("Index", "ProductByProvider", new { Provider = item.Id, ProviderName = StringUtil.RemoveSpecialCharactersVn(item.Name) })" title="@item.Name">
                            <img src="@hostContainImages/upload/ProviderImages/@item.ImagePath?width=84&height=45" width="84" height="45" alt="@item.Name" />
                        </a>
                    </li>
                }
            </ul>
        </div>
    </div>
}